package cn.stylefeng.guns.modular.recy.entity;
/*
 */

import com.baomidou.mybatisplus.extension.activerecord.*;
import java.io.*;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("recy_product_exchange")
public class ProductExchange extends Model<ProductExchange> implements Serializable
{
    //alias
    public static final String TABLE_ALIAS = "积分兑换";
    public static final String ALIAS_ID = "编号";
    public static final String ALIAS_USER_ID = "操作管理员";
    public static final String ALIAS_WECHAT_ID = "兑换用户";
    public static final String ALIAS_USE_JIFEN = "兑换积分";
    public static final String ALIAS_PRODUCT_JIFEN = "商品积分";
    public static final String ALIAS_PRODUCT_ID = "兑换的商品";
    public static final String ALIAS_CREATE_TIME = "兑换时间";
    public static final String ALIAS_REMARK = "备注";
    public static final String ALIAS_ADDRESS = "收货地址";
    public static final String ALIAS_USER_NAME = "收件人";
    public static final String ALIAS_USER_PHONE = "收件人电话";

    //date formats
    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String FORMAT_CREATE_TIME = DATE_FORMAT;



//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START
    @TableId(value = "id", type = IdType.ID_WORKER)
    private java.lang.Long id;

    @TableField("user_id")
    private java.lang.Long userId;

    @TableField("wechat_id")
    private java.lang.Long wechatId;

    @TableField("use_jifen")
    private java.lang.Double useJifen;

    @TableField("product_jifen")
    private java.lang.Double productJifen;

    @TableField("product_id")
    private java.lang.Long productId;

    @TableField("create_time")
    private java.util.Date createTime;

    @TableField("remark")
    private java.lang.String remark;

    @TableField("address")
    private java.lang.String address;

    @TableField("user_name")
    private java.lang.String userName;

    @TableField("user_phone")
    private java.lang.String userPhone;

//columns END







    

}
